{% extends 'app2/base.html' %}
{% load i18n %}
{% block subtitle %}{{obj}}{% endblock %}

{% block extra-head %}
<meta name="keywords" content="{{obj}},{{ g_blog.title }},{{ g_blog.keywords }}" />
<meta name="description" content="{{obj}},{{obj.category.name}},{{obj.abstract}}" />
<meta name="UYId" content="{{obj.short_url}}" />
{% endblock %} 

{% block content_main %}
<div class="yui-b">

<div class="yui-g" id="articletop">
<h2><a href="{{obj.category.get_absolute_url}}" title="{{obj.category.name|safe}}">{{obj.category.name|safe}}</a> &raquo; <span title="{{obj.title|safe}}">{{obj.title|safe}}</span></h2>
{%if ads_article_top%}<div class="artlist_ggad">{{ads_article_top|safe}}</div>{%endif%}
<div id="np">
{% if obj.prev %}<p class="flleft">&laquo; <a href="{{obj.prev.get_absolute_url}}" title="{{obj.prev.title}}">{{obj.prev.title}}</a></p>{% endif %}
{% if obj.next %}<p class="flright"><a href="{{obj.next.get_absolute_url}}" title="{{obj.next.title}}">{{obj.next.title}}</a> &raquo;</p>{% endif %}
</div>
<div id="bbscontenct">

<div class="author">
<a href="{{obj.profile.get_absolute_url}}" title="{{obj.profile.displayname|safe}} {% trans 'Profile' %}">{{obj.profile.displayname|safe}}</a><br/>
<a href="{{obj.profile.get_absolute_url}}" title="{{obj.profile.displayname|safe}} {% trans 'Profile' %}"><img src="{{obj.profile.gravatar_url}}" class="gravatar" alt="{{obj.profile.displayname|safe}}" height="80" width="80" /></a><br/>
{%if not obj.commentclosed%}{% if user.is_authenticated %}<a href="#postcomment" onclick='replyto("{{obj.profile.displayname|safe}}","{{obj.key}}");' title="{% trans 'Reply' %} {{obj.profile.displayname|safe}}">{% trans "Reply" %}</a>{%endif%}{%endif%}
</div>
<div class="artcon">
<p class="date">{% trans "Date" %} {{obj.pub_time|date:"Y-m-d H:m:s"}}
{% if user.is_authenticated %}
{% if user.is_superuser %}
ip:{{obj.pub_ip}} |
{% trans "Administration" %}: <a href='{% url app2.views.edit_article key=obj.key %}'>{% trans "Edit" %}</a>
| <a href='{% url app2.views.del_article key=obj.key %}'>{% trans "Delete" %}</a>
{%else%}
{% ifequal user obj.author %}
{% trans "Author" %}: <a href='{% url app2.views.edit_article key=obj.key %}'>{% trans "Edit" %}</a>
{% endifequal %}
{% endif %}

{% endif %}
</p>
<div class="messagecon">{{obj.content|safe}}</div>
<p class="permalink">{% trans "Permalink" %} http://{{current_site.domain}}{{obj.short_url}}</p>
{% if obj.profile.signtext %}<p class="signtext">{{obj.profile.signtext|safe}}</p>{%endif%}
</div>
<div class="bbsclear"></div>

<!-- UY BEGIN -->
<div id="uyan_frame"></div>
<script type="text/javascript" id="UYScript" src="http://uyan.cc/js/iframe.js?UYUserId=2111" async=""></script>
<!-- UY END -->

</div>

<div id="np">
{% if obj.prev %}<p class="flleft">&laquo; <a href="{{obj.prev.get_absolute_url}}" title="{{obj.prev.title}}">{{obj.prev.title}}</a></p>{% endif %}
{% if obj.next %}<p class="flright"><a href="{{obj.next.get_absolute_url}}" title="{{obj.next.title}}">{{obj.next.title}}</a> &raquo;</p>{% endif %}
</div>

</div>
</div>

{% endblock %}
